<?php
class Atur_non_syahriyah extends CI_Model 
{

	function __construct()
	{
		parent::__construct();
	}

	function non_sy($id_m_j_pendidikan)
	{
		$this->db->select('*');
		$this->db->from('a_non_sy');
		$this->db->where('id_m_j_pendidikan ', $id_m_j_pendidikan);
		$this ->db->order_by('akhir_bayar');

		$query = $this->db->get();		
		return $query->result();
	}

	function save($dataInsert)
	{
		$query = $this->db->insert('a_non_sy', $dataInsert);
		return $query;
	}

	function delete($id_a_non_sy)
	{
		$this->db->where('id_a_non_sy', $id_a_non_sy);
		$delete = $this->db->delete('a_non_sy');
		return $delete;
	}
}